package trunk.core;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

public class Comparator{
    public class keyComparator extends WritableComparator {
        protected keyComparator(){
            super(Text.class, true);
        }
        public int compare(WritableComparable w1, WritableComparable w2)
        {
            Text v1 = (Text)w1,    v2 = (Text)w2;
            return v1.compareTo(v2);
        }
    }

}
